import request from '@/utils/request'

export function addInterface(data) {
  return request({
    url: '/authcenter/sys-interface/add',
    method: 'post',
    data
  })
}

export function findInterface(page,size,name,path,requestType) {
  return request({
    url: '/authcenter/sys-interface/findPage',
    method: 'get',
    params: {page: page,size: size,name: name, path: path, requestType: requestType}
  })
}

export function detailInterface(id) {
    return request({
      url: '/authcenter/sys-interface/get',
      method: 'get',
      params: {id: id}
    })
}

export function editInterface(data) {
  return request({
    url: '/authcenter/sys-interface/edit',
    method: 'put',
    data
  })
}

export function delInterface(id) {
  return request({
    url: '/authcenter/sys-interface/del',
    method: 'delete',
    params: {id: id}
  })
}
